from tinyshop_ui.common.login import common_login
from tinyshop_ui.common.add import common_add
from tinyshop_ui.common.input import common_input
from tinyshop_ui.common.select import common_select
from tinyshop_ui.common.findmodule import common_module
class user:
    def vip_mag(self,module1,module2,parm):
        webd = common_login().webd
        parm.pop()
        common_module(webd,module1,module2)
        common_add(webd)
        common_select().addr_select(webd)
        common_input(webd).text(webd,parm)
        common_input(webd).submit()
        webd.close()
    def level_mag(self,module1,module2,parm):
        webd = common_login().webd
        common_module(webd,module1,module2)
        common_add(webd)
        common_input(webd).text(webd,parm)
        common_input(webd).checkbox()
        common_input(webd).submit()
        webd.close()


